﻿
@{
    var selector = ".width:not(.noborder)";
    string m = ViewData["hitabselector"] as string;
    if (!string.IsNullOrWhiteSpace(m))
    {
        selector = m;
    }
       
}
<script type="text/javascript">
    $(function () {
        $("table@(selector) tr").click(function () {
            $(this).closest("table").find("tr.HighlightTr").removeClass("HighlightTr");
            $(this).closest("tr").addClass("HighlightTr");
        });
    });
</script>
